package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/8/2.
 * Des:
 */
@Entity
@Table(name = "neteaseim_member_rp_t", schema = "jshoperxms", catalog = "")
public class NeteaseimMemberRpT {
    private String id;
    private String memberid;
    private long createtime;
    private long updatetime;
    private String creatorid;
    private String status;
    private int versiont;
    private String imaccid;
    private String imtoken;
    private String imname;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 20)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "IMACCID", nullable = false, length = 45)
    public String getImaccid() {
        return imaccid;
    }

    public void setImaccid(String imaccid) {
        this.imaccid = imaccid;
    }

    @Basic
    @Column(name = "IMTOKEN", nullable = false, length = 45)
    public String getImtoken() {
        return imtoken;
    }

    public void setImtoken(String imtoken) {
        this.imtoken = imtoken;
    }

    @Basic
    @Column(name = "IMNAME", nullable = false, length = 45)
    public String getImname() {
        return imname;
    }

    public void setImname(String imname) {
        this.imname = imname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NeteaseimMemberRpT that = (NeteaseimMemberRpT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (imaccid != null ? !imaccid.equals(that.imaccid) : that.imaccid != null) return false;
        if (imtoken != null ? !imtoken.equals(that.imtoken) : that.imtoken != null) return false;
        if (imname != null ? !imname.equals(that.imname) : that.imname != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + versiont;
        result = 31 * result + (imaccid != null ? imaccid.hashCode() : 0);
        result = 31 * result + (imtoken != null ? imtoken.hashCode() : 0);
        result = 31 * result + (imname != null ? imname.hashCode() : 0);
        return result;
    }
}
